package entity;

import java.awt.Image;
import java.io.File;
import java.io.FileInputStream;
import java.io.Serializable;

/**
 * @class Product used to create a new Product instance.
 * @param name is the name of the product.
 * @param description of the product.
 * @param price of the product.
 * @param size of mybytrarray.
 * @param mybytrarray
 */
public class Product implements Serializable {
	
	private String name;
	private String description;
	private float price;
	private int size=0;
	public  byte[] mybytearray;

	

	public String getName(){
		return this.name;
	}
	public void setName(String name){
		this.name=name;
	}
	public String getDescription(){
		return this.description;
	}
	public void setDescription(String description){
		this.description=description;
	}
	public float getPrice(){
		return this.price;
	}
	public void setPrice(float price){
		this.price=price;
	}
	public void initArray(int size)
	{
		mybytearray = new byte [size];	
	}
	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}
	public byte[] getMybytearray() {
		return mybytearray;
	}
	public void setMybytearray(byte[] mybytearray) {
		this.mybytearray = mybytearray;
	}


}
